package com.aifund.admin.controller;

import com.aifund.admin.service.HomeService;
import com.aifund.common.result.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/home")
public class HomeController {

    @Autowired
    HomeService homeService;

    @GetMapping("/homeData")
    public ResultBody homeData(){
        return ResultBody.success(homeService.getHomeData());
    }

}
